import request from "@/utils/request";
const POD = "k8sManger";
const PodAPI = {
  getPodsByNamespace(cicdConfigId: number) {
    return request<any, Pod[]>({
      url: `${POD}/${cicdConfigId}/listPod`,
      method: "get",
    });
  },
};

export default PodAPI;

/**
 * 文件API类型声明
 */
export interface Pod {
  podName: string;
  namespace: string;
  uid: string;
  startTime: Date;
  podIp: string;
  containerName: string;
  status: string;
  restartCount: number;
  image: string;
}
